package com.gzk.feignClients;

import com.gzk.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-product",fallbackFactory = ProductFeingnFallbackFactory.class)
public interface ProductFeign {

    @RequestMapping(value = "/product/{id}",method = RequestMethod.GET)
    Product get(@PathVariable("id")Long id);
}
